package io.cici.cc.mybatis.lite.util;

import java.lang.reflect.ReflectPermission;

public class SecurityManagerUtil {
    public static boolean memberAccessibleControl() {
        try {
            SecurityManager securityManager = System.getSecurityManager();
            if (null != securityManager) {
                securityManager.checkPermission(new ReflectPermission("suppressAccessChecks"));
            }
        } catch (SecurityException e) {
            return false;
        }
        return true;
    }
}
